public class LzaySingLeton {
    //懒汉模式
    public static LzaySingLeton INSTANCE;
    private LzaySingLeton(){
        System.out.println("dwdwddw");
    }

    public static LzaySingLeton getInstance(){
        if (INSTANCE == null){
            INSTANCE = new LzaySingLeton();
        }
        return INSTANCE;
    }
}
class Test03{
    public static void main(String[] args) {
        LzaySingLeton ly = LzaySingLeton.getInstance();
        LzaySingLeton ly1 = LzaySingLeton.getInstance();
        System.out.println(ly == ly1);
    }
}
